package week04.day01;

public class for循环练习 {
    //1-100之间的所有奇数之和
    public static void main(String[] args) {
        int sum = 0;
        for (int i=1;i<=100;i=i+2){
            sum += i;
        }
        System.out.println("1-100之间所有奇数之和为："+sum);
    }
}
